const AccountsService = imports.gi.AccountsService;
const Cairo = imports.cairo;
+const Cogl = imports.gi.Cogl;
const Clutter = imports.gi.Clutter;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
let allocation = this._drawingArea.get_allocation_box();
let paintOpacity = this._drawingArea.get_paint_opacity();
- this._shadowHelper.paint(allocation, paintOpacity);
+ let framebuffer = Cogl.get_draw_framebuffer();
+
+ this._shadowHelper.paint(framebuffer, allocation, paintOpacity);
}
this._drawingArea.paint();
/**
* st_shadow_helper_paint:
* @helper: a #StShadowHelper
+ * @framebuffer: a #CoglFramebuffer
* @actor_box: the bounding box of the shadow
* @paint_opacity: the opacity at which the shadow is painted
*
*/
void
st_shadow_helper_paint (StShadowHelper *helper,
+ CoglFramebuffer *framebuffer,
ClutterActorBox *actor_box,
guint8 paint_opacity)
{
_st_paint_shadow_with_opacity (helper->shadow,
- cogl_get_draw_framebuffer (),
+ framebuffer,
helper->pipeline,
actor_box,
paint_opacity);
ClutterActor *source);
void st_shadow_helper_paint (StShadowHelper *helper,
+ CoglFramebuffer *framebuffer,
ClutterActorBox *actor_box,
guint8 paint_opacity);